#ifndef SKULL_H_INCLUDED
#define SKULL_H_INCLUDED

#include "common.h"
#include "matrixManagement.h"
#include <SDL.h>

void setP(bool** mask, Uint16 l, Uint16 c, bool* P);
void setQ(bool** mask, Uint16 l, Uint16 c, bool* Q);


Uint8 getA(bool* P);
bool getL(bool* Q);
Uint8 getB(bool* P);
bool getC(bool* P);
Uint8 N(bool* P);
bool supprimable(bool* P);
bool connexAlt(bool* P,int caseVide);
bool estAuBord(bool** mask, Uint16 l, Uint16 c, Taille tailleDuMasque);
bool centreBouleMax1(bool** estAuBordMask, Uint16 l, Uint16 c, Taille tailleDuMasque);
int distanceAuBord(bool** estAuBordMask, Uint16 l, Uint16 c, Taille tailleDuMasque);
double distanceAuBord2(bool** estAuBordMask, Uint16 l, Uint16 c, Taille tailleDuMasque);

void setCarte(bool** m, SArea sArea, int** carte, Taille size );
int setChanfrein(int** carte, Uint16 l, Uint16 c);
bool LMC(int** mask, Uint16 l, Uint16 c);
#endif // SKULL_H_INCLUDED
